package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ADispatchRequestsMapper;
import com.ruoyi.system.domain.ADispatchRequests;
import com.ruoyi.system.service.IADispatchRequestsService;

/**
 * 调度请求Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
@Service
public class ADispatchRequestsServiceImpl implements IADispatchRequestsService 
{
    @Autowired
    private ADispatchRequestsMapper aDispatchRequestsMapper;

    /**
     * 查询调度请求
     * 
     * @param id 调度请求主键
     * @return 调度请求
     */
    @Override
    public ADispatchRequests selectADispatchRequestsById(Long id)
    {
        return aDispatchRequestsMapper.selectADispatchRequestsById(id);
    }

    /**
     * 查询调度请求列表
     * 
     * @param aDispatchRequests 调度请求
     * @return 调度请求
     */
    @Override
    public List<ADispatchRequests> selectADispatchRequestsList(ADispatchRequests aDispatchRequests)
    {
        return aDispatchRequestsMapper.selectADispatchRequestsList(aDispatchRequests);
    }

    /**
     * 新增调度请求
     * 
     * @param aDispatchRequests 调度请求
     * @return 结果
     */
    @Override
    public int insertADispatchRequests(ADispatchRequests aDispatchRequests)
    {
        return aDispatchRequestsMapper.insertADispatchRequests(aDispatchRequests);
    }

    /**
     * 修改调度请求
     * 
     * @param aDispatchRequests 调度请求
     * @return 结果
     */
    @Override
    public int updateADispatchRequests(ADispatchRequests aDispatchRequests)
    {
        return aDispatchRequestsMapper.updateADispatchRequests(aDispatchRequests);
    }

    /**
     * 批量删除调度请求
     * 
     * @param ids 需要删除的调度请求主键
     * @return 结果
     */
    @Override
    public int deleteADispatchRequestsByIds(Long[] ids)
    {
        return aDispatchRequestsMapper.deleteADispatchRequestsByIds(ids);
    }

    /**
     * 删除调度请求信息
     * 
     * @param id 调度请求主键
     * @return 结果
     */
    @Override
    public int deleteADispatchRequestsById(Long id)
    {
        return aDispatchRequestsMapper.deleteADispatchRequestsById(id);
    }
}
